import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import org.sqlite.SQLiteDataSource;
import org.sqlite.SQLiteJDBCLoader;

public class test {
	
	public static final boolean Connected() {
		boolean initialize = SQLiteJDBCLoader.initialize();
		
		SQLiteDataSource dataSource = new SQLiteDataSource();
		dataSource.setUrl("jdbc:sqlite:./users.sqlite");
		int i=0;
		try {
			ResultSet executeQuery = dataSource.getConnection()
			.createStatement().executeQuery("select * from \"Table2\"");
			while (executeQuery.next()) {
				//i++;
				System.out.println("out: "+executeQuery.getMetaData().getColumnLabel(1));
				
				
			}
			
			
			
		} catch (SQLException ex) {
			JOptionPane.showMessageDialog(null, ex);
		}
		
		return initialize;
		
	}
	
	public static void main(String[] args) 
	{
		new test().Connected();
	}

}